<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "gky_jiaocai".
 *
 * @property integer $id
 * @property string $name
 * @property string $xibie
 * @property string $sex
 * @property string $birthday
 * @property string $xueli
 * @property string $xuewei
 * @property string $biye
 * @property string $zhuanye
 * @property string $zhicheng
 * @property string $zhicheng_time
 * @property string $zhengshu
 * @property string $zhengshu_time
 * @property string $jiaocai_name
 * @property string $chubanshe
 * @property string $chuban_time
 * @property string $shuhao
 * @property string $beizhu
 */
class Jiaocai extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'gky_jiaocai';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['birthday', 'biye', 'zhicheng_time', 'zhengshu_time', 'chuban_time'], 'safe'],
            [['name', 'xibie', 'sex', 'xueli', 'xuewei', 'zhuanye', 'zhicheng', 'zhengshu', 'jiaocai_name', 'chubanshe', 'shuhao', 'beizhu'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => '姓名',
            'xibie' => '系别',
            'sex' => '性别',
            'birthday' => '出生年月',
            'xueli' => '学历',
            'xuewei' => '学位',
            'biye' => '毕业时间',
            'zhuanye' => '专业',
            'zhicheng' => '职称',
            'zhicheng_time' => '职称获取时间',
            'zhengshu' => '资格证书',
            'zhengshu_time' => '证书获得时间',
            'jiaocai_name' => '教材名称',
            'chubanshe' => '出版社',
            'chuban_time' => '出版时间',
            'shuhao' => '书号',
            'beizhu' => '备注',
        ];
    }
}
